package com.xs.mongo.spring;

import java.util.Date;

import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "user_rongyun")
public class User {
	private String id;

	private String userName;

	private String addr;

	private int age;

	private Date birthday;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", userName=" + userName + ", addr=" + addr + ", age=" + age + ", birthday="
				+ birthday + "]";
	}
	
	
	
}
